package com.limingru.newbee.dao;

import com.limingru.newbee.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    Integer insertOrder(Order order);

    List<Order> selectOrdersByUserId(@Param("userId") Long userId);

    List<Order> selectOrdersByOrderIds(@Param("orderIds") List<Long> orderIds);

    Integer deleteOrder(Order order);
}
